package com.github.llyb120.dsl

import static com.github.llyb120.report.All.*

/**
 * @Author: Administrator* @Date: 8/25/2021 4:13 PM
 */

public static void main(String[] args) {
    def rep = report {
        datasource "select * from t_user limit #start#,#length#"
        params ([a: 1, b: 2, c: 3])
        col "序号", {
            cn "序号"
            calculate { v, i, l ->
                return i + 1
            }
        }
        col "fuck", "标题", {
        }
    }
    println rep

}
